package com.cl.erp.timer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class AutoTask {
    //表示每隔3秒
    @Scheduled(fixedRate = 3000)
    public void fixedRateJob() {
//        log.info(Thread.currentThread().getName() + " 定时任务");
    }
}
